#!/bin/bash

printf "%s\r\n" \
       "Status: 404 Not Found" \
       "Content-Type: text/html" \
       ""

cat <<beliebig_HEREDOC_beliebig
<!DOCTYPE HTML>
<html>
  <head><title>Test</title>
</head><body>
  <h1 class="foo">It Works!</h1>
  <form method=GET>
    <input name=x>
  </form>
  Input: $QUERY_STRING
</body></html>
beliebig_HEREDOC_beliebig
